package com.cungmua.app.model.request;

import com.cungmua.app.utils.AppUtils;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by kelvin.nguyen on 7/25/14.
 */
public class ForgotPasswordRequest extends AuthenticatedRequest {

    private String email;

    public ForgotPasswordRequest(String deviceId, String token) {
        super(deviceId, token);
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @JsonProperty("Email")
    public String getEmail() {
        return email;
    }

    @Override
    public String getSign() {
        return AppUtils.MD5(String.valueOf(getEmail() +
                getVersion() + getDeviceId() + getToken()));
    }
}
